package day4;

public class Test10 {
    public static void main(String[] args) {
        // 验证输入的密码必须是数组,且长度在5-6位
        String str = "1234567";
        boolean res = str.matches("^\\d{5,6}$");
        System.out.println(res);
    }
}
